<template>
  <div class="container">
    aaaaaaa
    <DatePicker
      v-model="myDate"
      type="date"
      format="yyyy-MM-dd"
      :options="options"
      placeholder="请选择"
      transfer
      clearable
    ></DatePicker>
    <Button @click="clickHandle">点击</Button>
  </div>
</template>

<script>
let n = 0;
export default {
  data() {
    return {
      myDate:'',
      options: {
        disabledDate(date) {
          return date && date.valueOf() < Date.now() - n * 86400000;
        }
      }
    };
  },
  mounted() {

  },
  computed : {
    // t1() {
    //   return this.n*86400000;
    // },
  },
  methods: {
    clickHandle() {
      n++;
      console.log('n',n);
    }
  },
};
</script>
<style lang="less" scoped>

</style>
